package com.nzw.pojo.coupon;

import javax.inject.Named;
import javax.persistence.Column;
import javax.persistence.Table;
import java.util.Date;

/**
 * Created by Administrator on 2018/5/22/022.
 */
@Table(name = "t_preferentialrule")
public class PreferentialRule {

    private Long id;                //id
    private Long companyId;         //企业id
    private Long shopId;            //门店id
    private Long memberGroup;       //会员组
    private Long carType;           //专车类型
    private int corwd;              //人群:1 会员组 2 专车组
    private Date stratDate;         //开始时间
    private Date endDate;           //结束时间
    private Integer minSpend;       //最少金额
    private Integer freeMoney;      //免单金额
    private Boolean del;


    @Column(name = "del")
    public Boolean getDel() {
        return del;
    }

    public void setDel(Boolean del) {
        this.del = del;
    }

    @Column(name = "freeMoney")
    public Integer getFreeMoney() {
        return freeMoney;
    }

    public void setFreeMoney(Integer freeMoney) {
        this.freeMoney = freeMoney;
    }

    @Column(name = "id")
    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    @Column(name = "companyId")
    public Long getCompanyId() {
        return companyId;
    }

    public void setCompanyId(Long companyId) {
        this.companyId = companyId;
    }

    @Column(name = "shopId")
    public Long getShopId() {
        return shopId;
    }

    public void setShopId(Long shopId) {
        this.shopId = shopId;
    }

    @Column(name = "memberGroup")
    public Long getMemberGroup() {
        return memberGroup;
    }

    public void setMemberGroup(Long memberGroup) {
        this.memberGroup = memberGroup;
    }

    @Column(name = "carType")
    public Long getCarType() {
        return carType;
    }

    public void setCarType(Long carType) {
        this.carType = carType;
    }

    @Column(name = "corwd")
    public int getCorwd() {
        return corwd;
    }

    public void setCorwd(int corwd) {
        this.corwd = corwd;
    }

    @Column(name = "stratDate")
    public Date getStratDate() {
        return stratDate;
    }

    public void setStratDate(Date stratDate) {
        this.stratDate = stratDate;
    }


    @Column(name = "endDate")
    public Date getEndDate() {
        return endDate;
    }

    public void setEndDate(Date endDate) {
        this.endDate = endDate;
    }


    @Column(name = "minSpend")
    public Integer getMinSpend() {
        return minSpend;
    }

    public void setMinSpend(Integer minSpend) {
        this.minSpend = minSpend;
    }


    @Override
    public String toString() {
        return "PreferentialRule{" +
                "id=" + id +
                ", companyId=" + companyId +
                ", shopId=" + shopId +
                ", memberGroup=" + memberGroup +
                ", carType=" + carType +
                ", corwd=" + corwd +
                ", stratDate=" + stratDate +
                ", endDate=" + endDate +
                ", minSpend=" + minSpend +
                ", freeMoney=" + freeMoney +
                ", del=" + del +
                '}';
    }
}
